﻿<UserControl x:Class="HotkeyControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:my="clr-namespace:Finestra"
		mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">
	<GroupBox>
		<GroupBox.Header>
			<CheckBox Name="chkEnableKey" Margin="3"
					Content="{Binding RelativeSource={RelativeSource AncestorType=my:HotkeyControl}, Path=Header}"
					IsChecked="{Binding RelativeSource={RelativeSource AncestorType=my:HotkeyControl}, Path=IsHotkeyEnabled}" />
		</GroupBox.Header>
		<StackPanel Orientation="Vertical" IsEnabled="{Binding ElementName=chkEnableKey, Path=IsChecked}">
			<StackPanel Orientation="Horizontal">
				<CheckBox Name="chkWin" Margin="5">Windows</CheckBox>
				<CheckBox Name="chkCtrl" Margin="5">Control</CheckBox>
				<CheckBox Name="chkShift" Margin="5">Shift</CheckBox>
				<CheckBox Name="chkAlt" Margin="5">Alt</CheckBox>
			</StackPanel>
			<ComboBox Name="cboKeys" Margin="3" />
		</StackPanel>
	</GroupBox>
</UserControl>
